package com.insist.service;

import com.insist.entity.UserInfo;
import com.insist.framework.CmmBaseResponse;
import com.insist.model.AccountFlowModel;

import java.util.List;

/**
 * Created by INSIST on 2016/6/28.
 */
public interface UserService {

    public UserInfo checkLogin(String username,String password);

    CmmBaseResponse register(String mobile, String password);

    UserInfo getByMobileAndPassword(String username, String encode);

    UserInfo getById(Long id);

    UserInfo resetPassword(String mobile);

    void save(UserInfo userInfo);

    Integer getTotalJoinNum();

    void testAddCoin(String mobile);

    List<AccountFlowModel> findAccountFlow(Long loginUserId);

    UserInfo getByMobile(String mobile);

    CmmBaseResponse trideCoin(Double coin, String mobile, Long id);
}
